feat: show community sentiment on social twitter post pages - #6373
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Tweet posts use the dedicated SocialTwitterPostContent layout, which never rendered the community take. Gate and render it with the same inline conditional-enrollment pattern PostContent and PostFocusCard use on main, including the newer show-in-modal semantics from #6520/#6523. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
rebelchris
force-pushed
the
feat/community-sentiment-twitter-posts
branch
from
August 27, 2026 12:20
7602a57 to
899f757
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Completes the X community-takes chain on the frontend: tweet posts now render the
CommunitySentimentsurface. The backend generates takes for tweets from their X reply threads (dailydotdev/yggdrasil#711 + dailydotdev/bragi#262 + dailydotdev/daily-api#4024), but tweets use the dedicatedSocialTwitterPostContentlayout, which never showed the take.Changes
SocialTwitterPostContent: renders<CommunitySentiment>after the tweet body (thread markdown / embedded quote preview), using the same inline gating asPostContenton main: maps the wire shape, conditionally enrolls in thecommunity_sentimentexperiment only when a take exists (no enrollment dilution from take-less posts), with theisDevelopmentlocal-preview escape hatch, and the compactmb-4spacing in modals. Shown on both the full post page and the preview modal, matching the direction set by fix: show community takes in post modals #6520/fix: render community takes in feed-opened post modals #6523.communitySentimentalready ridesSHARED_POST_INFO_FRAGMENT, and bothPOST_BY_ID_QUERYandPOST_BY_ID_STATIC_FIELDS_QUERY(which the tweet post page uses) spread it. The layout is already wrapped inwithPostById, so feed-opened modals hydrate the take from the post-by-id cache like the other surfaces.Tests / verification
SocialTwitterPostContent.spec.tsx(4 tests), mirroring thePostContent.spec.tsxpattern (raw component, real GrowthBook viaTestBootProvider, no mocks): renders on the post page with take + flag; renders in the preview modal; hidden without a take; hidden with the flag off.sharedsuite: 2635 passed (only failures are the 3 pre-existingnumberFormatlocale assertions that fail on non-en-US machines — untouched here, green in CI).webappsuite: 602 passed (only failure is the pre-existingWorldGuideSheetlocale assertion, verified failing on clean main).typecheck-strict-changedand eslint clean.Rollout
Nothing new to flip: the surface obeys the existing
community_sentimentexperiment. Tweets simply join the eligible surfaces.🤖 Generated with Claude Code
Preview domain
https://feat-community-sentiment-twitter.preview.app.daily.dev